projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58f1046
)
mpc512x: Fix problem with I2C access before relocation
author
Stefan Roese
<
[email protected]
>
Mon, 8 Jun 2009 07:38:07 +0000
(09:38 +0200)
committer
Wolfgang Denk
<
[email protected]
>
Fri, 12 Jun 2009 18:47:18 +0000
(20:47 +0200)
This is needed for the upcoming esd MECP5123 board port which uses
I2C EEPROM for environment storage.
Signed-off-by: Stefan Roese <
[email protected]
>
Cc: Reinhard Arlt <
[email protected]
>
Acked-by: Heiko Schocher<
[email protected]
>
cpu/mpc512x/i2c.c
patch
|
blob
|
history
diff --git
a/cpu/mpc512x/i2c.c
b/cpu/mpc512x/i2c.c
index 97bda0d84ec3bb4330080126a76c51c45bd49225..e2d909751ef3afc972f02e713b4813064944b709 100644
(file)
--- a/
cpu/mpc512x/i2c.c
+++ b/
cpu/mpc512x/i2c.c
@@
-33,7
+33,7
@@
DECLARE_GLOBAL_DATA_PTR;
#include <i2c.h>
/* by default set I2C bus 0 active */
-static unsigned int bus_num = 0;
+static unsigned int bus_num
__attribute__ ((section (".data")))
= 0;
#define I2C_TIMEOUT 100
#define I2C_RETRIES 3